package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.modules.cfg.dao.CfgBerthRelateMapper;
import com.xhtt.modules.cfg.entity.CfgBerthRelate;
import com.xhtt.modules.cfg.model.ValidBerthParam;
import com.xhtt.modules.cfg.service.CfgBerthRelateService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-02-28
 */
@Service
public class CfgBerthRelateServiceImpl extends ServiceImpl<CfgBerthRelateMapper, CfgBerthRelate> implements CfgBerthRelateService {

    @Override
    public List<CfgBerthRelate> getValidRelateObject(ValidBerthParam param) {
        return baseMapper.getValidRelateObject(param.getBerthId(), param.getProductId());
    }
}
